package com.waterdrop.wlsggk.mapper;


import com.waterdrop.wlsggk.pojo.DishMaterial;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface DishMaterialMapper {

    /**
     * 新增菜品物料
     *
     * @return
     */
    public int insertWlsggkDishMaterial(DishMaterial dishMaterial);

    /**
     * 菜品物料列表查询
     *
     * @return
     */
    public List<DishMaterial> selectWlsggkDishMaterialList(DishMaterial dishMaterial);

    /**
     * 根据菜品id，批量删除菜品物料信息
     *
     * @param ids 物料id
     * @return
     */
    public int deleteWlsggkDishMaterialByIds(Long[] ids);

    /**
     * 根据id查询菜品物料
     *
     * @param id
     * @return
     */
    public List<DishMaterial> selectWlsggkDishMaterialByDishId(Long id);


    /**
     * 修改菜品物料
     *
     * @return
     */
    public int updateWlsggkDishMaterial(DishMaterial dishMaterial);
}

